package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.BedInfoMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.BedInfoService;
import com.the4man.framework.model.BedInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("bedInfoService")
public class BedInfoServiceImpl extends AbstractService<BedInfo> implements BedInfoService {
    @Autowired
    private BedInfoMapper bedInfoMapper;

    public BedInfoServiceImpl() {
    }

    public Map autoAssignRoomByLevel(String levelId) {
        return this.bedInfoMapper.autoAssignRoomByLevel(levelId);
    }

    public int updateStayTime(BedInfo bed) {
        return this.bedInfoMapper.updateStayTime(bed);
    }

    public BedInfo selectByEmpId(String empId) {
        return this.bedInfoMapper.selectByEmpId(empId);
    }
}
